//
//  GraphicCalloutViewController.m
//  dataGathering
//
//  Created by apple on 14/12/22.
//  Copyright (c) 2014年 shuili. All rights reserved.
//

#import "GraphicCalloutViewController.h"

@implementation GraphicCalloutViewController
@synthesize closeButton;
@synthesize forkToLocalButtonClicked;
@synthesize forkToLocalButton;

- (IBAction)closeButtonClicked:(id)sender {
    [_mapview.callout dismiss];
    [[NSNotificationCenter defaultCenter] postNotificationName:@"closeCallout" object:nil];
}

-(void)setIsFeatureDataCallout :(BOOL)isFeature
{
    [closeButton setHidden:isFeature];
    [forkToLocalButton setHidden:!isFeature];
}
- (IBAction)forkToLocalButtonClicked:(id)sender {
    [_mapview.callout dismiss];
    [[NSNotificationCenter defaultCenter] postNotificationName:@"forkToLocal" object:_graphic];
}
@end
